﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using CS2102_Music.Logic.LogicModels;

namespace CS2102_Music.Controllers
{
    public class SharedController : Controller
    {
        //
        // GET: /Shared/
        private Logic.Logic logic = Logic.Logic.GetInstance(new Logic.DbConnector());

        public ActionResult Index()
        {
            return View();
        }


        public PartialViewResult TopRightTabs()
        {
            UserL user = new UserL();
            string type = "";

            if (Session["User"] != null)
            {
                user = (UserL)Session["User"];
                type = user.IsAdmin;
                ViewBag.userType = type;
                ViewBag.logged = user.Name;
            }
            else
            {
                ViewBag.logged = "false";
            }

            return PartialView();
        }


        public PartialViewResult SearchBox()
        {
            return PartialView();
        }

    }
}
